package com.mjf.system.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.mjf.system.domain.MjfViewDes;
import com.mjf.system.mapper.MjfViewDesMapper;
import com.mjf.system.service.IMjfViewDesService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * desc
 * </p>
 *
 * @author chenshoumeng
 * @date 2024/11/22 19:42
 */
@Service
public class IMjfViewDesServiceImpl extends ServiceImpl<MjfViewDesMapper, MjfViewDes> implements IMjfViewDesService {
    @Override
    public void testPage() {
        QueryWrapper<MjfViewDes> queryWrapper = new QueryWrapper<>();
        PageHelper.startPage(1, 10, null).setReasonable(true);
        List<MjfViewDes> list = super.getBaseMapper().selectList(queryWrapper);
        PageInfo<MjfViewDes> pageInfo =new PageInfo<>(list);
        System.out.println(pageInfo);
    }
}
